package jeecg.business.entity.keywordtype;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import jeecg.business.entity.keyword.KeywordEntity;

import org.hibernate.annotations.GenericGenerator;

/**   
 * @Title: Entity
 * @Description: 关键词类型
 * @author LinYingPiaoJian
 * @date 2015-09-21 19:26:27
 * @version V1.0   
 *
 */
@Entity
@Table(name = "NMS_KEYWORD_TYPE", schema = "")
@SuppressWarnings("serial")
public class KeywordTypeEntity implements java.io.Serializable {
	/**主键*/
	private java.lang.String id;
	/**类型名称*/
	private java.lang.String lxmc;
	/**企业ID*/
	private java.lang.String qyid;
	/**顺序号*/
	private java.lang.Integer sxh;
	
	List<KeywordEntity> keywordList;
	
	
	@Transient
	public List<KeywordEntity> getKeywordList() {
		return keywordList;
	}

	public void setKeywordList(List<KeywordEntity> keywordList) {
		this.keywordList = keywordList;
	}
	
	public void addKeyWord(KeywordEntity k){
		if(keywordList == null) keywordList = new ArrayList<KeywordEntity>();
		keywordList.add(k);
	}

	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  主键
	 */
	
	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name ="ID",nullable=false,length=32)
	public java.lang.String getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  主键
	 */
	public void setId(java.lang.String id){
		this.id = id;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  类型名称
	 */
	@Column(name ="LXMC",nullable=true,length=255)
	public java.lang.String getLxmc(){
		return this.lxmc;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  类型名称
	 */
	public void setLxmc(java.lang.String lxmc){
		this.lxmc = lxmc;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  企业ID
	 */
	@Column(name ="QYID",nullable=true,length=32)
	public java.lang.String getQyid(){
		return this.qyid;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  企业ID
	 */
	public void setQyid(java.lang.String qyid){
		this.qyid = qyid;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  顺序号
	 */
	@Column(name ="SXH",nullable=true,precision=10,scale=0)
	public java.lang.Integer getSxh(){
		return this.sxh;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  顺序号
	 */
	public void setSxh(java.lang.Integer sxh){
		this.sxh = sxh;
	}
}
